Part Number Hot Search : 
1J000 OY121K DG2612 I1015 08226 AX8734A AS1536 82077AA
Product Description
Full Text Search
 

To Download ATT7022B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
www..com
ATT7022B User Manual
Date: 2005-06-30 Rev: 1.04
http://www.Actions.com.cn
Page 1 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Table of Contents
www..com
1 Introduction 1.1 features...........................................................................4 1.2 Functional description.........................................................5 1.3 Block diagram...................................................................5 1.4 Pin definition.....................................................................6 1.5 Application diagram............................................................9 2 System Functions 2.1 Power supply monitor.........................................................10 2.2 System reset.....................................................................10 2.3 ADC................................................................................11 2.4 Active power measure.........................................................12 2.5 Active energy measure........................................................12 2.6 Reactive power measure.....................................................12 2.7 Reactive energy measure....................................................13 2.8 Apparent power measure.....................................................14 2.9 Apparent energy measure....................................................14 2.10 Voltage RMS measure.......................................................15 2.11 Current RMS measure.......................................................15 2.12 Voltage line-frequency measure...........................................15 2.13 Power factor measure........................................................16 2.14 Voltage and current phase angle measure..............................16 2.15 Voltage middle angle measure.............................................16 2.16 Voltage phase sequence measure........................................16 2.17 Current phase sequence measure........................................17 2.18 Start-up and creep setting...................................................17 2.19 power direction judgement...................................................17 2.20 Voltage- depreciation detecting.............................................17 2.21 Hardware port detecting......................................................18 2.22 Chip temperature detecting..................................................18 2.23 Fundamental wave and harmonic measure function..................18 2.24 Application for 3-phase 3-wire and 3-phase 4-wire....................21 2.25 energy pulse output............................................................21 2.26 Parameter output registers definition......................................22 2.27 Parameter output registers specification.................................27 3 Calibration 3.1 Software calibration.............................................................34 3.2 Calibration register definition.................................................35 3.3 Calibration register specification.............................................37 3.4 Calibration flow chart and parameter calculation........................44
http://www.Actions.com.cn
Page 2 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
4 SPI communication interface 4.1 SPI communication interface introduction.................................48 4.2 SPI reading........................................................................49 4.3 SPI writing.........................................................................50 www..com 4.4 SPI write special command...................................................51 5 Electrical Characteristics 5.1 Electrical parameter............................................................53 5.2 Packaging information.........................................................54
http://www.Actions.com.cn
Page 3 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Chapter 1 Introduction
www..com
1.1 Features
* High accuracy, less than 0.1% error over a dynamic range of 1000 to 1; * Active energy measure accords with 0.2S, 0.5S, supports IEC 62053-22,GB/T 17883-1998 * Reactive energy measure accords with 2S, 3S, supports IEC 62053-23,GB/T 17882-1999; * Provides fundamental wave, harmonic energy and total energy measure; * Provides apparent energy measure; * Supplies positive and negative active energy, reactive energy data; * Supplies instantaneous active power, reactive power, and apparent power data; * Supplies power factor, phase difference, line frequency data; * Supplies voltage RMS, current RMS data; RMS precision overmatches 0.5%; * Provides voltage and current phase sequence detecting; * Provides RMS output for 3-phase current vector summation; * Provides RMS output for 3-phase voltage vector summation; * Provides voltage middle angle measure; * Provides voltage-lost detecting; * Provides indication for negative power; * Provides calibration pulse output for active, reactive and apparent energy; * Provides calibration pulse output for fundamental wave active and reactive energy; * Selectable calculating mode for 3 phase energy combined; * Built-in temperature sensor; * Adjustable meter constant; * Adjustable startup current; * Accurate measure for active, reactive and apparent power which contain 21st harmonic; * Provides gain and phase compensation, nonlinear compensation for little current; * Easy to use SPI port to communicate with host MCU; * Compatible with 3-phase 3-wire and 3-phase 4-wire services; * Single +5V power supply; * QFP44 package.
http://www.Actions.com.cn
Page 4 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
1.2 Functional description
ATT7022B is a high accuracy 3-phase electronic energy metering chip which is suitable for 3-phase 3-wire and 3-phase 4-wire services. ATT7022B incorporates 7 second-order sigma-delta ADCs, reference circuitry and all www..com the signal processing required calculating power, energy, RMS data, power factor and frequency. ATT7022B is suitable for measuring active power, reactive power, apparent power, active energy, and reactive energy for each phase and 3 phases combined; it is also suitable for measuring voltage RMS, current RMS, power factor, phase difference, and frequency. ATT7022B is qualified for 3-phase multifunctional electronic energy meter. ATT7022B supports software calibration for gain, phase. Two pulses for active and reactive power (CF1, CF2) can be used directly to calibrate error. Refer to chapter 3 for detailed calibration method. ATT7022B supports fundamental wave active power and reactive power measurement. The two pulses output (CF3, CF4) can be used to calibrate fundamental wave power error. ATT7022B provides two kinds of apparent energy output: RMS apparent energy and PQS apparent energy, CF3 and CF4 could also be used as apparent energy pulse output. SPI port is used to transfer data to and from host MCU for all measuring result and calibration data. Refer to chapter 4 for detailed SPI reading and writing method. Power supply monitor circuitry safeguards ATT7022B's performance.
1.3 Block diagram
http://www.Actions.com.cn
Page 5 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
1.4 Pin definition
G N D
www..com
O S C O
O S C I
V C C
R E V P
V D D
D O U T
S DC IL NK
C S
V C C
44 43 42 41 40 39 38 37 36 35 34
RESET 1 SIG V1P V1N
2 3 4
33 VDD 32 NC 31 CF4 30 CF3 29 NC 28 CF2 27 CF1
REFCAP 5 V3P 6 V3N AGND V5P
7 8 9
ATT7022B
12 13 14 15 16 17 18 19 20 21 22
26 SEL 25
NC
V5N 10 REFOUT 11
24 TEST 23 GND
A V C C
VV 22 PN
AVV G44 NPN D
A V C C
V 6 P
V 6 N
V 7 P
V 7 N
Pin 1 2
Name RESET SIG
I/O I O
Description ATT7022B reset, low active with internally pull-up 47K resistance. SIG would go low when ATT7022B power on reset or unconventional reset. After the host MCU sends calibration data via SPI, SIG would goes high immediately. Fully differential mode analog inputs for phase A current channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of permanent damage. Internal reference voltage, 2.4V, can be connected to external reference voltage. This pin should be decoupled with a 10F and a 0.1uF capacitor to AGND. Fully differential mode analog inputs for phase B current channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of
Page 6 of 54 Rev 1.04
3,4
V1P/V1N
I
5
REFCAP
O
6,7
V3P/V3N
I
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B permanent damage. 8,15 9,10
www..com
AGND V5P/V5N
AGND I
The analog ground is the ground reference for all analog circuitry. Fully differential mode analog inputs for phase C current channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of permanent damage. Reference voltage output, acts as bias for input signals. Analog power supply, the supply voltage should be maintained at 5V5 for specified operation. This pin should be decoupled with a 10F and a 0.1uF capacitor to AGND. Fully differential mode analog inputs for phase A voltage channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of permanent damage. Fully differential mode analog inputs for phase B voltage channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of permanent damage. Fully differential mode analog inputs for phase C voltage channel. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry. An over voltage of 6V can be sustained on these inputs without risk of permanent damage. Fully differential mode analog inputs for NO.7 ADC. The maximum input signal level is 1.5V. Both inputs have internal ESD protection circuitry and in addition an over voltage of 6V can be sustained on these inputs without risk of permanent damage. Digital ground. Test pin, should tie to GND normally. Internally pull-down 47K resistance. No connection. System mode selection, high for 3-phase 4-wire,
Page 7 of 54 Rev 1.04
11 12,18
REFOUT AVCC
O AVCC
13,14
V2P/V2N
I
16,17
V4P/V4N
I
19,20
V6P/V6N
I
21,22
V7P/V7N
I
23,44 24 25,29,32 26
GND TEST NC SEL
GND I --I
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B low for 3-phase 3-wire. Internally pull-up 300K resistance. 27
www..com
CF1
O
Active energy pulse output. This output can be used for operational and calibration purposes. The frequency of CF1 stands for 3 phases combined average active power. Reactive energy pulse output. This output can be used for operational and calibration purposes. The frequency of CF2 stands for 3 phases combined average reactive power CF3: fundamental wave active energy pulse output. The frequency of CF3 stands for 3 phase combined average active power of fundamental wave. CF3 can also be configured as apparent energy pulse output (RMS). CF4: fundamental wave reactive energy pulse output The frequency of CF4 stands for 3 phase combined average reactive energy of fundamental wave. CF4 can also be configured as apparent energy pulse output (PQS). 3.0V Power output. This pin should be decoupled with a 10F and a 0.1uF capacitor to GND. Digital power supply, the supply voltage should be maintained at 5V5%. This pin should be decoupled with a 10F and a 0.1uF capacitor to GND. SPI selection signal, low active, Internally pull-up 200K resistance. SPI serial clock input (Schmitt). Note: Data is output at the rising edge and input at the falling edge. SPI serial data input (Schmitt). Internally pull-down 200K resistance. SPI serial data output. It is high-impedance output when CS is high. Goes high when any phase's active power is negative, goes low when all 3 phases' active power is positive. System oscillator input. Oscillator frequency is 24.576MHz. System oscillator output.
Page 8 of 54 Rev 1.04
28
CF2
O
30
CF3
O
31
CF4
O
33,39
VDD
VDD
34,41
VCC
VCC
35 36
CS SCLK
I I
37 38 40
DIN DOUT REVP
I O O
42 43
OSCI OSCO
I O
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
1.5 Application diagram
/RST
www..com
1.2K 10K 3 C1 1.2K C2 1.2K 10K 13 10K 10K 4 V1P 11 Refout
SIG RESET SPI
IA
R
UA
C3 1.2K C4 14
IB UB IC UC
Same to connect of phase A
Same to connect of phase A
ATT7022B V1N High Precision V2P MultiV2N functional prevent fault fundamental and harmonic 3-phase energy measuring ASIC
OSCI
Host MCU
CF1 CF2 CF3 CF4
Data Transfer port LCD display EEPROM
OSCO 24.576MHz
Diagram 1-5-1 ATT7022B typical application diagram
http://www.Actions.com.cn
Page 9 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Chapter 2 System Functions
2.1 Power supply monitor
www..com
5V 4V
ATT7022B contains an on-chip power supply monitor. The analog supply (AVCC) is continuously monitored by the 0V time ATT7022B. If the supply is less than 4V5%, the ATT7022B will be reset. This is useful to ensure correct device start-up reset reset working reset and operation at power-on and power-down. The power supply monitor has built in delay and filtering circuits. This Diagram 2-1-1 power supply monitor gives a high degree of immunity to false trigger due to noisy supplies, as illustrated in the figure 2-1. The power supply should be decoupled so that the ripple at AVCC does not exceed 5V5% for normal operation.
2.2 System reset
ATT7022B provides two kinds of reset method: hardware reset and software reset. Hardware reset is executed via external RESET pin, which has internal 47K pull-up resistance. So in normal working, the RESET pin is set to logic high; If RESET pin is pulled to low level overstep 20us, ATT7022B would be reset; and when RESET pin goes to logic high, ATT7022B would go to normal working state from reset state. Software reset is executed via SPI port; if we write 0xD3 to SPI port, ATT7022B would be reset and start working renewedly from initial state. The SIG pin is set to logic high in reset state. After ATT7022B goes to normal working state from reset state, SIG pin would be pulled to low level from high level in about 500us, then the chip will start normal working and the calibration data could be written in. Once the calibration data is written, SIG pin would go to high level immediately.
t1>=20us t2<20us
Reset input pin
t5<5us
SPI operation SPI has no writing 0xD3 SPI has no writing SPI wtiting
ATT7022B internal reset: RST
t4<100us t3<500us t6<500us t7<5us
SIG
SFlag.7
Diagram 2-2-1 ATT7022B system reset
http://www.Actions.com.cn
Page 10 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
2.3 ADC
There are 7 ADCs in ATT7022B, all of which use fully differential voltage inputs, with a maximum input voltage of 1.0V. For proper application, we suggest that voltage channel input set at 0.5V and current channel input (at base current -Ib) set at 0.1V. www..com The typical value of reference voltage (Refcap and Refout) is 2.4V. Block diagram of ADC in ATT7022B:
V1P V1N V2P V2N V3P V3N V4P V4N V5P V5N V6P V6N V7P V7N
PGA1 SIGMA-DELTA MODULATOR PGA2 SIGMA-DELTA MODULATOR PGA3 SIGMA-DELTA MODULATOR PGA4 SIGMA-DELTA MODULATOR PGA5 SIGMA-DELTA MODULATOR PGA6 SIGMA-DELTA MODULATOR PGA7 SIGMA-DELTA MODULATOR Reference voltage DECIMATION FILTER FIR FILTER Temperature sensor DECIMATION FILTER FIR FILTER ADC DECIMATION FILTER FIR FILTER DECIMATION FILTER FIR FILTER Register output DECIMATION FILTER FIR FILTER DECIMATION FILTER FIR FILTER DECIMATION FILTER FIR FILTER
Diagram 2-3-1 ADC internal circuitry block diagram
Typical input circuitry:
REFOUT 1.5(6)A/5mA Current input 1.2K 20 1.2K 220V/0.5V Voltage input 1.2K 10nF 1.2K 10nF
Diagram: 2-3-2 typical input circuitry
10K V1P 10nF 10K 10nF V1N 10K V2P 10K V2N
http://www.Actions.com.cn
Page 11 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
2.4 Active power measure
Calculation of active power for each phase is achieved by a series of multiplication, addition and digital filtering, which act on input voltage and current signals after removing dc offset. www..com The over-sampling of sigma-delta ADC guarantees sampling rate of input signals, and the sampled data contains information for up to 21st harmonic. And according to the formula P= 1
U (n) * I (n) , the active power contains information for up to 21st harmonic. N
N n =0
The measure elements of active power is illustrated in the nether figure, 3-phase combined active power Pt=Pa+Pb+Pc.
Voltage sampling value Current sampling value Power gain compensation Energy calculation Digital HPF Phase correction Epa
Digital HPF
Diagram: 2-4-1 active power measurement
Pa Power calculation 3-phase combined active power: Pt=Pa+Pb+Pc
2.5 Active energy measure
Calculation of active energy is achieved via instantaneous active power integrating to the time. The formula of single phase active energy: Ep =
p(t )dt
The 3-phase combined active energy could be summated according to algebraic addition mode or absolute addition mode, which could be set through registers. Algebraic addition mode: Ept=Epa+Epb+Epc Absolute addition mode: Ept=|Epa|+|Epb|+|Epc|
Energy addition mode: algebraic or absolute Ept=Epa+Epb+Epc or Ept=|Epa|+|Epb|+|Epc|
Pa Pb Pc
Energy calculation Energy calculation Energy calculation
Epa Epb Epc
Pulse creater
CF1 Ept
Diagram: 2-5-1 active energy measurement
2.6 Reactive power measure
According to real reactive power (sine reactive power) well-defined formula, the reactive power Q = U I sin( ) . nn
n =1
Calculation of reactive power is similar to the calculation of active power. The only difference is that the voltage signals are 90 degree phase shifted. The metrical bandwidth is restricted by the bandwidth of digital phase-shifted filter. The metrical bandwidth of ATT7022B reactive power could be also up to 21st harmonic.
http://www.Actions.com.cn
Page 12 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Voltage sampling value Current www..com sampling value Power gain compensation Energy calculation Digital HPF Phase correction Eqa
Digital HPF
90 phaseshifted filter
Diagram 2-6-1 reactive power measurement
Qa Power calculation 3-phase combined reactive power: Qt=Qa+Qb+Qc
The digital 90 phase-shifted filter in ATT7022B has ascendant frequency response characteristic, as illustrated in the figure 2-6-2. It is a linear filter with the amplitude-frequency characteristic of 1; and all frequency components in the frequency-band would be processed -90 phase-shifted. So ATT7022B can achieve corking measurement veracity even when measuring high-order harmonic reactive power. Note: when calibrating reactive power, we must insure that the reactive power arithmetic of standard-meter is same to ATT7022B reactive power arithmetic; otherwise the difference of arithmetic would bring definite error, especially to harmonic reactive power.
Diagram 2-6-2 90 phase-shifted filter
2.7 Reactive energy measure
Calculation of reactive energy is achieved via instantaneous reactive power integrating to the time. The formula of single phase reactive energy: Eq = q(t ) dt The 3-phase combined reactive energy could be summated according to algebraic addition mode or absolute addition mode, which could be set through registers. Algebraic addition mode: Eqt=Eqa+Eqb+Eqc
http://www.Actions.com.cn
Page 13 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Absolute addition mode: Eqt=|Eqa|+|Eqb|+|Eqc|
Energy addition mode: algebraic or absolute Eqt=Eqa+Eqb+Eqc or Eqt=|Eqa|+|Eqb|+|Eqc|
Qa
Energy calculation Energy calculation Energy calculation
Eqa Eqb Eqc
www..com Qb
Qc
Pulse creater
CF2 Eqt
Diagram: 2-7-1 reactive power measurement
2.8 apparent power measure
Apparent power has two kinds of calculation formula: PQS apparent power formula 1:
S = P2 + Q2
RMS apparent power formula 2: S=Urms*Irms Because of ATT7022B could supply voltage RMS and current RMS directly, RMS apparent power as described in formula 2 can be achieved convenient via external MCU, so ATT7022B supplies only the apparent power value which is achieved by PQS apparent power formula 1, as illustrated in the nether figure.
Pa Esa
extraction Qa
Energy calculation Power calculation
Sa
Diagram 2-8-1 apparent power measurement
ATT7022B calculates 3-phase combined apparent power according to formula 1, which bases on 3-phase combined active power and 3-phase combined reactive power, as illustrated in the nether figure.
Pt St
extraction Qt
Power calculation
Diagram 2-8-2 3-phase apparent power measurement
2.9 apparent energy measure
Apparent energy is defined as apparent power integrating to the time. Because of apparent power have two kinds of calculation formula, so ATT7022B supplies two kinds of apparent energy. The PQS apparent energy is calculated according to formula 1, as illustrated in the nether figure. The 3-phase combined PQS apparent energy pulse is output via CF4.
http://www.Actions.com.cn
Page 14 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Est
Pt
extraction Qt
Energy calculation
Pulse creater
CF4
Diagram 2-9-1 3-phase apparent energy measurement
The RMS apparent energy is calculated according to formula 2, as illustrated in the nether figure. The 3-phase combined RMS apparent energy pulse is output via CF3.
URmsa IRmsa URmsb IRmsb URmsc IRmsc Energy calculation Energy calculation Energy calculation Diagram 2-9-2 apparent energy measurement
http://www.Actions.com.cn
Page 15 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B single phase voltage in A/B/C 3 phase as benchmark of line-frequency measure. Measurable line-frequency range is 10Hz ~ 500Hz.
2.13 Power factor measure
www..com Power
factor calculation formula:Pf=sign(Q) x
abs( P ) abs( S )
The sign of power factor is determined by the sign of reactive power.
2.14 Voltage and current phase angle measure
According to electrotechnician theory, power factor Pf=cos(Pg), thereinto Pg is middle angle of voltage and current. In ATT7022B, the voltage and current phase angle is defined as: Pg= power is negative, actual phase angle is 360+Pg If active power is negative, actual phase angle is 180-Pg.
Q
sign(Q)*acos(|Pf|). According to this
method, ATT7022B could supply 3-phase combined power factor to 3-phase combined phase angle reference: Pgt=
sign(Q)*acos(|Pft|)
ATT7022B phase angle Pg could only be denoted as 90, the sign is same as power factor. If we want to use 0360 denoted different quadrant phase angle, we need to do some switchover as follows: If active power is positive, reactive power is also positive, actual phase angle is Pg; If active power is positive, reactive
P- Q+ Pg>=0 a = 180-Pg P- QPg<0 a = 180-Pg
P+ Q+ Pg>=0 a = Pg P+ QPg<0 a = 360+Pg
P
Diagram 2-14-1 voltage and current phase angle calculation
2.15 Voltage middle angle measure
The precision of ATT7022B voltage middle angle measure is about 5. There are 3 registers in ATT7022B: YUaUb, YUaUc, YUbUc, which denote middle angle of AB/AC/BC phase voltage. The data will update every 1/3 second. Note: Voltage middle angle measure function need to be turned on via voltage middle angle measure enable control register EnUAngle. It is recommended that we should open this function only when we need to output the angle values, otherwise we should close this function.
2.16 Voltage phase sequence measure
ATT7022B can detect voltage phase sequence, but the voltage phase sequence detection criterion of 3-phase 3-wire and 3-phase 4-wire is not same. In 3-phase 4-wire mode, voltage phase sequence detection detects according as the zero crossing point sequence of A/B/C 3 phase voltage. The correct criterion of voltage phase sequence is phase A voltage cross zero > phase B voltage cross zero > phase C voltage cross zero, or else voltage phase sequence is wrong. In addition, if any phase of A/B/C has no voltage signal input, ATT7022B would also regard voltage phase
http://www.Actions.com.cn
Page 16 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B sequence as wrong. In 3-phase 3-wire mode, voltage phase sequence detection detects according as the middle angle of phase A voltage and phase C voltage. If the middle angle of phase A voltage and phase C voltage is about 300, ATT7022B would regard voltage phase sequence as right, or else voltage phase sequence is wrong. www..com The flag of voltage phase sequence is in flag register SFlag. SFlag[bit3] = 1 denotes A/B/C voltage phase sequence is wrong, SFlag[bit3] = 0 denotes A/B/C voltage phase sequence is wrong.
2.17 Current phase sequence measure
ATT7022B can detect current phase sequence. Current phase sequence detection detects according as the zero crossing point sequence of A/B/C 3 phase current. The correct criterion of current phase sequence is phase A current cross zero > phase B current cross zero > phase C current cross zero, or else current phase sequence is wrong. In addition, if any phase of A/B/C has no current signal input, ATT7022B would also regard current phase sequence as wrong. The flag of current phase sequence is in flag register SFlag, SFlag[bit4] = 1 denotes A/B/C current phase sequence is wrong, SFlag[bit4] = 0 denotes A/B/C current phase sequence is right Note: current phase sequence detection function need to be turned on via phase detection enable control register EnDtlorder. We should close this function except when we need use it.
2.18 Start-up and creep setting
ATT7022B implements start-up and creep via judging the value of current and start-up threshold. If ATT7022B detected any one phase current was higher than start-up threshold, the corresponding phase would start measure. If ATT7022B detected any one phase current was lower than start-up threshold, the corresponding phase would stop measure. After power on reset, the default value of ATT7022B start-up current threshold register `lstartup' is 0x000280, which denotes ATT7022B start-up at 0.1% and creep at 0.08% when input sampling signal is 100mv in rated current Ib.
2.19 Power direction judgement
ATT7022B supplies real time power direction judgement, which could implentment four-quadrant power measurement expediently. Negative power indication REVP: if any one phase active power is negative, REVP would output logic high; REVP goes low when all 3 phase power is positive.
Power direction indication register PFlag: used to indicate the direction of A/B/C 3-phase combined active and reactive power. Bit0-3: indicate the direction of A, B, C, and 3-phase combined active power respectively, 0 denotes positive, 1 denotes negative. Bit4-7: indicate the direction of A, B, C, and 3-phase combined reactive power respectively, 0 denotes positive, 1 denotes negative.
http://www.Actions.com.cn
Page 17 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
2.20 Loss of voltage detecting
ATT7022B can detect A/B/C 3 phase voltage loss status based on configured threshold voltage. www..com Threshold voltage could be configured via voltage loss threshold setting register FailVoltage. After power on reset, the voltage loss threshold is set to different values based on current working mode (3-phase 3-wire/3-phase 4-wire), If voltage RMS has not being calibrated, in 3-phase 4-wire mode, threshold is about 50mv in voltage channel; in 3-phase 3-wire mode, threshold is about 300mv in voltage channel. If voltage RMS has being calibrated, voltage loss threshold setting register FailVoltage must be configured renewedly, please refer to the section 3.3.9, "voltage loss threshold setting". Loss of voltage status is indicated by status flat register: SFlag. SFlag bit0/1/2 = 1 denotes A/B/C 3-phase voltage is lower than configured threshold voltage, SFlag bit0/1/2 = 1 denotes A/B/C 3-phase voltage is higher than configured threshold voltage.
2.21 Hardware port detecting
ATT7022B can detect hardware port automatically. System will reset when hardware port changes. The external hardware input port used by ATT7022B is SEL.
2.22 On chip temperature detecting
ATT7022B has a built-in temperature sensor, while ATT7022B supplies a 8-bit ADC sampling output temperature data. The differentiate rate of temperature data is 1.
2.23 Fundamental wave and harmonic measure function
ATT7022B supplies fundamental wave and harmonic energy measurement. ATT7022B can separate fundamental wave component and harmonic component in voltage and current signal, provides accurate measurement to fundamental wave power, fundamental wave energy, harmonic power and harmonic energy. Introduction of fundamental wave meter: ATT7022B selects fundamental wave meter mode when fundamental wave measurement enable control register EnLineFreq = 0x007812, fundamental wave measurement and harmonic measurement switch select register EnHarmonic 0x0055AA. In the fundamental wave meter mode, the port CF3 output fundamental wave active pulse and the port CF4 output fundamental wave reactive pulse.
http://www.Actions.com.cn
Page 18 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Voltage channel ADC sampling data Digital HPF U(n) 90 phaseshifted filter UT(n) Reactive energy measurement CF2
www..com
Current channel ADC sampling data Digital HPF I(n) Active energy measurement EnLineFreq register (Addr:0x2D) Fundamental wave/ harmonic active energy measurement Fundamental wave/ harmonic reactive energy measurement
CF1
U(n) I(n) UT(n)
Fundamental wave extractive filter and fundamental wave suppresser filter
U1(n) I1(n) UT1(n)
CF3
CF4
EnHarmonic register (Addr:0x3C) Diagram 2-23-1 fundamental wave/harmonic energy measurement
Fundamental wave extractive filter and fundamental wave suppresser complete fundamental wave or harmonic measurement function. The fundamental wave extractive filter can attenuate harmonic signals higher than 3st (150Hz), pass the fundamental wave component to be measured and the harmonic attenuation rate is up to -30dB. The fundamental wave suppresser attenuate fundamental wave signal, pass the harmonic component to be measured and the fundamental wave attenuation rate is up to -30dB. Fundamental wave active power, fundamental wave reactive power, fundamental wave apparent power, fundamental wave phase angle, fundamental wave power factor, and fundamental wave voltage could be selected via fundamental wave voltage power output select register SelectPQSU. If SelectPQSU = 0x001228, the corresponding power, voltage, phase, phase angle registers would output fundamental wave data. If SelectPQSU 0x001228, the corresponding power, voltage, phase, phase angle registers would hold primary function unchanged.
http://www.Actions.com.cn
Page 19 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Fundamental wave+harmonic fundamental/harmonic voltage RMS: U (Addr:0x0D/0E/0F/2B) active power: P (Addr:0x01/02/03/04) reactive power: Q (Addr:0x05/06/07/08) apparent power: S (Addr:0x09/0A/0B/0C) power factor: Pf (Addr:0x14/15/16/17) phase angle: Pg (Addr:0x18/19/1A/1B)
U(n) I(n) UT(n)
www..com
U1(n) I1(n) UT1(n)
Voltage RMS/ active power/ reactive power/ apparent power/ power factor/ phase angle measurement
SelectPQS register (Addr:0x2F) Diagram 2-23-2 fundamental wave/harmonic voltage RMS/ power/power factor measurement
Fundamental wave power can be calibrated via fundamental wave power calibration register. Please refer to fundamental wave calibration section. Fundamental wave current RMS can be calculated via fundamental wave apparent power and fundamental wave voltage RMS. According to nether formula: Fundamental wave voltage RMS: U1 Fundamental wave current RMS: I1 Fundamental wave voltage and current middle angle: 1 Fundamental wave active power: P1=U1*I1*cos(1) Fundamental wave reactive power: Q1=U1*I1*sin() Fundamental wave apparent power:
S1 = P12 + Q12 = (U 1 * I 1 * cos( )) 2 + (U 1 * I 1 * sin( )) 2 = U 1 * I 1
Fundamental wave current RMS : I1=S1/U1
Introduction of harmonic meter: ATT7022B selects harmonic meter mode when fundamental wave measurement enable control register EnLineFreq = 0x007812, fundamental wave measurement and harmonic measurement switch select register EnHarmonic = 0x0055AA. In the harmonic meter mode, the port CF3 output harmonic active pulse and the port CF4 output harmonic reactive pulse The corresponding parameter of fundamental wave meter is switched to parameter of harmonic meter coinstantaneous, including fundamental wave energy register is switched to harmonic energy register, fundamental wave power/voltage is switched to harmonic power/voltage. Note: The function of fundamental wave and harmonic measurement need to be turned on via fundamental wave measurement enable control register EnLineFreq, or else ATT7022B can not measure fundamental wave and harmonic. We should close this function except when we need use it.
http://www.Actions.com.cn
Page 20 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
2.24 Application for 3-phase 3-wire and 3-phase 4-wire
In 3-phase 4-wire mode, ATT7022B uses 3-element measurement method. The 3-phase combined power calculated formula is:
www..com
P4= U A I A + U B I B + U C I C Q4= U A I A 90 + U B I B 90 + U C I C 90 S4= P4 + Q4
2 2
*
*
*
*
*
*
*
*
*
*
*
*
In 3-phase 3-wire mode, ATT7022B uses 2-element measurement method. The 3-phase combined power calculated formula is:
P3= U AB I A + U CB I C Q3= U AB I A 90 + U CB I C 90 S3= P3 + Q3
2 2
*
*
*
*
*
*
*
*
In 3-phase 3-wire mode, phase B channel doesn't take part in power measurement. But ATT7022B could output phase B channel parameter solely. If we add signals to phase B voltage and current channel, we could read corresponding parameter (Pb/Qb/Sb/URmsb/IRmsb/Pfb/Pgb) in 3-phase 3-wire mode. The voltage and current signals added to phase B channel wouldn't influence normal measurement.
2.25 energy pulse output
ATT7022B provides 4 high-frequency pulse output: CF1/CF2/CF3/CF4. This is energy pulse illustrated diagram:
voltage: U active power measurement
active power P
energy pulse creater
Fout_P CF1 divided-frequency
CF1
reactive power measurement
reactive power Q
energy pulse creater
Fout_Q CF2 divided-frequency
CF2
fundamental wave active power measurement
fundamental ware active Po
energy pulse creater
Fout_Po CF3 divided-frequency
CF3
current: I
fundamental wave fundamental reactive energy pulse wave reactive Qo cteater power measurement
Fout_Qo CF4 divided-frequency
CF4
diagram 2-25-1 energy pulse output
In power measurement signal processing circuitry, the switched voltage and current signals are multiplied to get the instantaneous power, which is integrated to the time to be
http://www.Actions.com.cn
Page 21 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B turned into energy. The A/B/C phase energy is summated according to algebraic addition mode or absolute addition mode, By switching the result to frequency signal and dividing in the customized frequency division value, we get the energy pulse output signal which could be used to calibrate. The signal could be divided again to get the low-frequency pulse www..com output which could be used to drive electromechanical step motor. Following is the sketch map of frequency dividing while the high-frequency output constant is 64. The pulse-width of output energy pulse is 90ms. If the pulse cycle is less than 180ms, the energy pulse output duty cycle will be 1 : 1.
HFreq=64
Fout t1
t2=64 * t1
CF1
t2=90ms Diagram 2-25-2 CF pulse output timing
2.26 Parameter output registers definition
Measurement parameters output register list: Address 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F 0x10 0x11 0x12 Name RESERVED r_Pa r_Pb r_Pc r_Pt r_Qa r_Qb r_Qc r_Qt r_Sa r_Sb r_Sc r_St r_URmsa r_URmsb r_URmsc r_IRmsa r_IRmsb r_IRmsc Reset value -----------------------------------------------------------------0x000000 0x000000 0x000000 ---------------Function description Reserved. Phase A active power Phase B active power Phase C active power 3-phase combined active power Phase A reactive power Phase B reactive power Phase C reactive power 3-phase combined reactive power Phase A apparent power Phase B apparent power Phase C apparent power 3-phase combined apparent power Phase A voltage RMS Phase B voltage RMS Phase C voltage RMS Phase A current RMS Phase B current RMS Phase C current RMS
http://www.Actions.com.cn
Page 22 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x13 r_IRmst -----The RMS of phase ABC current vector sum formula: Irms= 0x14 www..com 0x15 0x16 0x17 0x18 0x19 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F 0x20 0x21 0x22 0x23 0x24 0x25 0x26 0x27 0x28 0x29 0x2A 0x2B r_Pfa r_Pfb r_Pfc r_Pft r_Pga r_Pgb r_Pgc r_Pgt r_Freq RESERVED r_Epa r_Epb r_Epc r_Eqt r_Eqa r_Eqb r_Eqc r_Eqt RESERVED RESERVED r_RSPIData r_RmsADC7 r_TempD r_URmst ----------------------------------------0x000000 -----0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 -------------------------0x000000
1 T
T
0
(ia + ib + ic) 2 dt
Phase A power factor Phase B power factor Phase C power factor 3-phase combined power factor Phase A phase angle Phase B phase angle Phase C phase angle 3-phase combined phase angle Line frequency Reserved. Phase A active energy Phase B active energy Phase C active energy 3-phase combined active energy Phase A reactive energy Phase B reactive energy Phase C reactive energy 3-phase combined reactive energy Reserved. Reserved. Last data that SPI read Input signal RMS of NO. 7 ADC Output of temperature sensor The RMS of phase ABC voltage vector sum formula: Urms=
1 T
T
0
(ua + ub + uc ) 2 dt
0x2C 0x2D 0x2E 0x2F 0x30 0x31 0x32 0x33
r_SFlag r_WSPIData1 r_WSPIData2 RESERVED r_EFlag r_Epa2 r_Epb2 r_Epc2 ---------------0x010000 0x000000 0x000000 0x000000
Status of phase-cut, phase sequence , and SIG Last data that SPI write Same to 0x2D, is last data that SPI read too Reserved. Status of energy register Phase A active energy, same to Epa, but would be clear to 0 after read. Phase B active energy, same to Epb, but would be clear to 0 after read. Phase C active energy, same to Epc, but would be clear to 0 after read.
http://www.Actions.com.cn
Page 23 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x34 0x35 0x36 www..com 0x37 0x38 0x39 0x3A 0x3B 0x3C 0x3D 0x3E r_Ept2 r_Eqa2 r_Eqb2 r_Eqc2 r_Eqt2 RESERVED RESERVED RESERVED r_LEFlag r_PFlag r_ChkSum1 0x000000 0x000000 0x000000 0x000000 0x000000 ---------------0x000000 -----0x043D03 0x16BD03 0x3F 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 0x49 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x50 0x51 0x52 0x53 0x54 0x55 r_InstADC7 r_PosEpa r_PosEpb r_PosEpc r_PosEpt r_NegEpa r_NegEpb r_NegEpc r_NegEpt r_PosEqa r_PosEqb r_PosEqc r_PosEqt r_NegEqa r_NegEqb r_NegEqc r_NegEqt r_LineEpa r_LineEpb r_LineEpc r_LineEpt r_LineEqa r_LineEqb -----0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 3-phase combined active energy, same to Ept, but would be clear to 0 after read. Phase A reactive energy, same to Eqa, but would be clear to 0 after read. Phase B reactive energy, same to Eqb, but would be clear to 0 after read. Phase C reactive energy, same to Eqc, but would be clear to 0 after read. 3-phase combined reactive energy, same to Eqt, but would be clear to 0 after read. Reserved. Reserved. Reserved. Status of fundamental wave energy register The direction of active and reactive power, positive is 0, negative is 1. Calibration data 4-wire mode) Calibration data 3-wire mode) checkout checkout register(3-phase register(3-phase
Sampling data output of No.7 ADC Positive phase A active energy register Positive phase B active energy register Positive phase C active energy register Positive 3-phase active energy register Negative phase A active energy register Negative phase B active energy register Negative phase C active energy register Negative 3-phase active energy register Positive phase A reactive energy register Positive phase B reactive energy register Positive phase C reactive energy register Positive 3-phase reactive energy register Negative phase A reactive energy register Negative phase B reactive energy register Negative phase C reactive energy register Negative 3-phase reactive energy register Phase A fundamental wave active energy Phase B fundamental wave active energy Phase C fundamental wave active energy 3-phase fundamental wave active energy Phase A fundamental wave reactive energy Phase B fundamental wave reactive energy
Page 24 of 54 Rev 1.04
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x56 0x57 0x58 0x59
www..com 0x5A
r_LineEqc r_LineEqt RESERVED RESERVED RESERVED RESERVED r_YUaUb r_YUaUc r_YUbUc r_ChkSum2
0x000000 0x000000 --------------------0x000000 0x000000 0x000000 0x043D03 0x16BD03
Phase C fundamental wave reactive energy 3-phase fundamental wave reactive energy Reserved. Reserved. Reserved. Reserved. Voltage middle angle in Ua and Ub Voltage middle angle in Ua and Uc Voltage middle angle in Ub and Uc Same to 0x3E. Calibration data checkout register(3-phase 4-wire mode) Same to 0x3E. Calibration data checkout register(3-phase 3-wire mode) Positive phase A active energy register, same to PosEpa, but would be clear to 0 after read. Positive phase B active energy register, same to PosEpb, but would be clear to 0 after read. Positive phase C active energy register, same to PosEpc, but would be clear to 0 after read. Positive 3-phase combined active energy register, same to PosEpt, but would be clear to 0 after read. Negative phase A active energy register, same to NegEpa, but would be clear to 0 after read. Negative phase B active energy register, same to NegEpb, but would be clear to 0 after read. Negative phase C active energy register, same to NegEpc, but would be clear to 0 after read. Negative 3-phase combined active energy register, same to NegEpt, but would be clear to 0 after read. Positive phase A reactive energy register, same to PosEqa, but would be clear to 0 after read. Positive phase B reactive energy register, same to PosEqb, but would be clear to 0 after read. Positive phase C reactive energy register, same to PosEqc, but would be clear to 0 after read. Positive 3-phase combined reactive energy register, same to PosEqt, but would be clear to 0 after read. Negative phase A reactive energy register, same to NegEqa, but would be clear to 0 after read.
0x5B 0x5C 0x5D 0x5E 0x5F
0x60 0x61 0x62 0x63
r_PosEpa2 r_PosEpb2 r_PosEpc2 r_PosEpt2
0x000000 0x000000 0x000000 0x000000
0x64 0x65 0x66 0x67
r_NegEpa2 r_NegEpb2 r_NegEpc2 r_NegEpt2
0x000000 0x000000 0x000000 0x000000
0x68 0x69 0x6A 0x6B
r_PosEqa2 r_PosEqb2 r_PosEqc2 r_PosEqt2
0x000000 0x000000 0x000000 0x000000
0x6C
r_NegEqa2
0x000000
http://www.Actions.com.cn
Page 25 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x6D r_NegEqb2 0x000000 Negative phase B reactive energy register, same to NegEqb, but would be clear to 0 after read. Negative phase C reactive energy register, same to NegEqc, but would be clear to 0 after read. Negative 3-phase combined reactive energy register, same to NegEqt, but would be clear to 0 after read. Phase A fundamental wave active energy, same to LineEpa, but would be clear to 0 after read. Phase B fundamental wave active energy, same to LineEpb, but would be clear to 0 after read. Phase C fundamental wave active energy, same to LineEpc, but would be clear to 0 after read. 3-phase combined fundamental wave active energy, same to LineEpt, but would be clear to 0 after read. Phase A fundamental wave reactive energy, same to LineEqa, but would be clear to 0 after read. Phase B fundamental wave reactive energy, same to LineEqb, but would be clear to 0 after read. Phase C fundamental wave reactive energy, same to LineEqc, but would be clear to 0 after read. 3-phase combined fundamental wave reactive energy, same to LineEqt, but would be clear to 0 after read. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved.
0x6E
www..com
r_NegEqc2
0x000000
0x6F
r_NegEqt2
0x000000
0x70 0x71 0x72 0x73
r_LineEpa2 r_LineEpb2 r_LineEpc2 r_LineEpt2
0x000000 0x000000 0x000000 0x000000
0x74
r_LineEqa2
0x000000
0x75
r_LineEqb2
0x000000
0x76
r_LineEqc2
0x000000
0x77
r_LineEqt2
0x000000
0x78 0x79 0x7A 0x7B 0x7C 0x7D 0x7E 0x7F
RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED
-----------------------------------------
http://www.Actions.com.cn
Page 26 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
2.27 Parameter output registers specification
2.27.1 power register (Address: 0x010x0C)
www..com
Register list: (refresh time is about 1/3 second. For the first time, the correct value would be available after 650ms.) Addr 0x01 Pa 0x02 Pb 0x03 Pc 0x04 Pt 0x05 Qa 0x06 Qb 0x07 Qc 0x08 Qt 0x09 Sa 0x0A Sb 0x0B Sc 0x0C St
Reg
ATT7022B power register uses supplementary code, the MSB is symbol bit. We can judge current quadrant according to the direction of active and reactive power in ATT7022B power register. Because of apparent power always 0, so the symbol bit of apparent power is 0 at all time. The formats of power register: For each single phase of A/B/C: the power parameter is X X: 24bits, supplementary code If it is greater than 2^23, then XX = X-2^24 Else XX=X The real power is: XXX=XX*2^15/2^23 For 3-phase combined data: the power parameter is T T: 24bits, supplementary code If it is greater than 2^23, then TT = T-2^24 Else TT=T The real power is: TTT=TT*2^17/2^23 The unit of power is Watt (w), which is relevant to pulse constant. Above mentioned real power is based on 3200 imp/kwh; if the pulse constant is set as EC, then the real power should be the product of TTT and 3200/EC.
2.27.2 RMS register (Address: 0x0D0x130x290x2B) Register list: (refresh time is about 1/3 second. For the first time, the correct value would be available after 650ms.) Addr Reg Addr Reg 0x0D URmsa 0x13 IRmst 0x0E URmsb 0x29 RmsADC7 0x0F URmsc 0x2B URmst 0x10 IRmsa 0x11 IRmsb 0x12 IRmsc
ATT7022B RMS register uses supplementary code and the MSB is symbol bit. Since RMS is always 0, the symbol bit of RMS is 0 at all time. Vrms: 24bits, supplementary code The real voltage RMS is: Urms=Vrms*2^10/2^23 Unit is Volt (V) or Ampere (A).
http://www.Actions.com.cn
Page 27 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 2.27.3 power factor register (Address:0x140x17) c Addr
www..com
0x14 Pfa
0x15 Pfb
0x16 Pfc
0x17 Pft
Reg
ATT7022B power factor register uses supplementary code, the MSB is symbol bit. The symbol bit of power factor is decided by symbol bit of reactive power, please refer to power factor measurement section: 2.13. PF: 24bits, supplementary code If PF > 2^23, then PFF=PF-2^24 Else PFF=PF The real power factor is: pf = PFF/2^23 2.27.4 phase angle register (Address: 0x180x1B) Register list: (refresh time is about 1/3 second. For the first time, correct value would be available after 650ms.) Addr Reg 0x18 Pga 0x19 Pgb 0x1A Pgc 0x1B Pgt
ATT7022B phase angle register uses supplementary code, the MSB is symbol bit, denotes the middle angle in -90+90. : 24bits, supplementary code If > 2^23, then =-2^24 Else = The real phase angle is: Pg = (/2^23)*2*180/pi (angle) Or Pg = (/2^23)*2 (radian) 2.27.5 line frequency register (Address: 0x1C) ATT7022B line frequency register uses supplementary code format, the MSB is symbol bit, the symbol bit is 0 at all time. Freq: 24bits, supplementary code The real frequency is: f = Freq*2^10/2^23 Unit: Hz 2.27.6 energy register (Adress: 0x1E0x250x310x380x400x4F0x600x6F) Register list: Addr Reg Addr 0x1E Epa 0x31 0x1F Epb 0x32 0x20 Epc 0x33 0x21 Ept 0x34 0x22 Eqa 0x35 0x23 Eqb 0x36 0x24 Eqc 0x37 0x25 Eqt 0x38
http://www.Actions.com.cn
Page 28 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Reg Addr Reg Addr
www..com Reg
Epa2 0x40 PosEpa 0x48 PosEqa 0x60 PosEpa2 0x68 PosEqa2
Epb2 0x41 PosEpb 0x49 PosEqb 0x61 PosEpb2 0x69 PosEqb2
Epc2 0x42 PosEpc 0x4A PosEqc 0x62 PosEpc2 0x6A PosEqc2
Ept2 0x43 PosEpt 0x4B PosEqt 0x63 PosEpt2 0x6B PosEqt2
Eqa2 0x44 NegEpa 0x4C NegEqa 0x64 NegEpa2 0x6C NegEqa2
Eqb2 0x45 NegEpb 0x4D NegEqb 0x65 NegEpb2 0x6D NegEqb2
Eqc2 0x46 NegEpc 0x4E NegEqc 0x66 NegEpc2 0x6E NegEqc2
Eqt2 0x47 NegEpt 0x4F NegEqt 0x67 NegEpt2 0x6F NegEqt2
Addr Reg Addr Reg
ATT7022B provides two kinds of energy registers, one is accumulated type, and the other is clear after reading type. The clear after reading energy register has an append `2' as identifier. There is no influence to clear after reading type energy register if we read accumulated type energy register. But if we read clear after reading type energy register, the accumulated type energy register would be cleared to 0 too at next energy refresh. The range of increased energy register is 0x000000 ~ 0xFFFFFF. If energy overflows from 0xFFFFFF to 0x000000, the overflow flag would be brought. Please refer to specification about status of energy register: 2.27.9. Energy register: 24bits, unsigned data. The data is based on the pulse constant. For example, if the pulse constant is set to 3200 imp/kwh, then the unit of data for these energy registers is 1/3200kwh. 2.27.7 temperature sensor data register (Address: 0x2A) temperature sensor data output register: Bit23..Bit8 Data Xxx TM7 0 TM6 0 TM5 0 TM4 0 TM3 0 TM2 0 TM1 0 TM0 0
TM:24bits, the low 8 bits is active. If TM > 128, then TMM=TM-256 Else TMM=TM After external MCU read this register and switch according to above mentioned, the real temperature could be achieved via formula: TC-TMM, TC is temperature calibration value. 2.27.8 status flag register (Address: 0x2C) SFlag bit definition: Bit23 Def Def Def --Bit15 --Bit07 SIG Bit22 --Bit14 --Bit06 --Bit21 --Bit13 --Bit05 --Bit20 --Bit12 --Bit04 Iorder Bit19 --Bit11 Cstart Bit03 Uorder Bit18 --Bit10 Bstart Bit02 PC Bit17 --Bit09 Astart Bit01 PB Bit16 --Bit08 --Bit00 PA
http://www.Actions.com.cn
Page 29 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Bit00: =1 denotes phase A power failure Bit01: =1 denotes phase B power failure Bit02: =1 denotes phase C power failure Bit03: =1 denotes voltage phase sequence is error www..com Bit04: =1 denotes current phase sequence is error Bit07: SIG would go low when ATT7022B power on reset or unconventional reset, at the same time this bit (SFlag.7) is set to 1; After the host MCU sends calibration data via SPI, SIG would goes high immediately, and SFlag.7 would be cleared to 0 simultaneous. So the Bit07 in SFlag register is synchronous with SIG signal. Bit09: =1 denotes phase A is in creep protection state. Bit10: =1 denotes phase B is in creep protection state. Bit11: =1 denotes phase C is in creep protection state. 2.27.9 status of energy register (Address: 0x30) This register would be cleared to 0 automatically after read. Bit0~2: Phase A, B, C positive active energy register overflow. Bit3: 3-phase positive active energy register overflow. Bit4~6: Phase A, B, C positive reactive energy register overflow. Bit7: 3-phase positive reactive energy register overflow. Bit8~10: Phase A, B, C negative active energy register overflow. Bit11: 3-phase negative active energy register overflow. Bit12~14: Phase A, B, C negative reactive energy register overflow. Bit15: 3-phase negative reactive energy register overflow. Bit16: Calibration request after system reset. This bit will be set after each system reset. 2.27.10 active and reactive power direction register (Address: 0x3D) Power direction indication register (PFlag): used to indicate the direction of phase A, B, C, and 3-phase combined active and reactive power. Bit0-3: denotes the direction of phase A, B, C, and 3-phase combined active power, 0 is positive and 1 is negative. Bit4-7: denotes the direction of phase A, B, C, and 3-phase combined reactive power, 0 is positive and 1 is negative. 2.27.11 Calibration data checksum register (Address: 0x3E0x5F) ATT7022B provides two special registers: ChkSum1 and ChkSum2, which are used to conserve the checksum value of all calibration data. External MCU can use them to examine calibration data's error. The checksum value is summation of all calibration data from 0x01 to 0x3F. After external MCU has written the calibration data, ATT7022B calculate and update
http://www.Actions.com.cn
Page 30 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B the checksum in 1/3 second. Note: ChkSum1 and ChkSum2 are irrelative, but the definition is identical. 2.27.12 No.7 ADC sampling output register (Address: 0x3F)
www..com
This is sampling data output of No.7 ADC, low 16 bits active. This register uses 16-bits supplementary code format, the MSB is symbol bit. The sampling speed is 3.2 KHz. 2.27.13 Voltage middle angle register (Address: 0x5C0x5E) The voltage phase angle measurement accuracy is about 5. There are 3 registers: YUaUb/YUaUc/YUbUc, which denote phase AB/AC/BC voltage middle angle respectively. Middle angle formula: YUaUb*2^10/2^23=YUaUb/2^13 2.27.14 fundamental wave energy register (Address: 0x500x570x700x77) Register list: Address 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x70 0x71 0x72 0x73 Name R_LineEpa R_LineEpb R_LineEpc R_LineEpt R_LineEqa R_LineEqb r_LineEqc r_LineEqt r_LineEpa2 r_LineEpb2 r_LineEpc2 r_LineEpt2 Reset value 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 Function description Phase A fundamental wave active energy Phase B fundamental wave active energy Phase C fundamental wave active energy 3-phase fundamental wave active energy Phase A fundamental wave reactive energy Phase B fundamental wave reactive energy Phase C fundamental wave reactive energy 3-phase fundamental wave reactive energy Phase A fundamental wave active energy, same to LineEpa, but would be clear to 0 after read. Phase B fundamental wave active energy, same to LineEpb, but would be clear to 0 after read. Phase C fundamental wave active energy, same to LineEpc, but would be clear to 0 after read. 3-phase combined fundamental wave active energy, same to LineEpt, but would be clear to 0 after read. Phase A fundamental wave reactive energy, same to LineEqa, but would be clear to 0 after read. Phase B fundamental wave reactive energy, same to LineEqb, but would be clear to 0 after read.
0x74 0x75
r_LineEqa2 r_LineEqb2
0x000000 0x000000
http://www.Actions.com.cn
Page 31 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x76 0x77
www..com
r_LineEqc2 r_LineEqt2
0x000000 0x000000
Phase C fundamental wave reactive energy, same to LineEqc, but would be clear to 0 after read. 3-phase combined fundamental wave reactive energy, same to LineEqt, but would be clear to 0 after read.
In fundamental wave meter mode, these registers conserve fundamental wave active and reactive energy, please refer to section 2.27.6. 2.27.15 RMS apparent energy register (Address: 0x500x570x700x77) Register list: Address 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x70 0x71 0x72 0x73 0x74 0x75 0x76 0x77 Name r_LineEpa r_LineEpb r_LineEpc r_LineEpt r_LineEqa r_LineEqb r_LineEqc r_LineEqt r_LineEpa2 r_LineEpb2 r_LineEpc2 r_LineEpt2 r_LineEqa2 r_LineEqb2 r_LineEqc2 r_LineEqt2 Reset value 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 Function description Phase A RMS apparent energy Phase B RMS apparent energy Phase C RMS apparent energy 3-phase RMS apparent energy --------------------Phase A RMS apparent energy, same to LineEpa, but would be clear to 0 after read. Phase B RMS apparent energy, same to LineEpb, but would be clear to 0 after read. Phase C RMS apparent energy, same to LineEpc, but would be clear to 0 after read. 3-phase combined RMS apparent energy, same to LineEpt, but would be clear to 0 after read. ---------------------
In RMS apparent energy measurement mode, these registers conserve RMS apparent energy, please refer to section 2.27.6. 2.27.16 PQS apparent energy register (Address: 0x500x570x700x77) Register list: Address 0x50 0x51 0x52 0x53 Name r_LineEpa r_LineEpb r_LineEpc r_LineEpt Reset value 0x000000 0x000000 0x000000 0x000000 Function description Phase A PQS apparent energy Phase B PQS apparent energy Phase C PQS apparent energy -----Page 32 of 54 Rev 1.04
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x54 0x55 0x56 0x57
www..com 0x70
r_LineEqa r_LineEqb r_LineEqc r_LineEqt r_LineEpa2 r_LineEpb2 r_LineEpc2 r_LineEpt2 r_LineEqa2 r_LineEqb2 r_LineEqc2 r_LineEqt2
0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000
---------------3-phase PQS apparent energy Phase A PQS apparent energy, same to LineEpa, but would be clear to 0 after read. Phase B PQS apparent energy, same to LineEpb, but would be clear to 0 after read. Phase C PQS apparent energy, same to LineEpc, but would be clear to 0 after read. --------------------3-phase combined PQS apparent energy, same to LineEpt, but would be clear to 0 after read.
0x71 0x72 0x73 0x74 0x75 0x76 0x77
In PQS apparent energy measurement mode, these registers conserve PQS apparent energy, please refer to section 2.27.6. 2.27.17 Status of fundamental wave energy register (Address: 0x3C) Bit0: =1 denotes LineEpa(0x50) register overflow. Bit1: =1 denotes LineEpb(0x51) register overflow. Bit2: =1 denotes LineEpc(0x52) register overflow. Bit3: =1 denotes LineEpt(0x53) register overflow. Bit4: =1 denotes LineEqa(0x54) register overflow. Bit5: =1 denotes LineEqb(0x55) register overflow. Bit6: =1 denotes LineEqc(0x56) register overflow. Bit7: =1 denotes LineEqt(0x57) register overflow. This register would be cleared to 0 automatically after read. 2.27.18 SPI read checkout register (Address: 0x28) This register conserves the last read data by SPI. This register could be used to checkout when SPI read data. 2.27.19 SPI write checkout register (Address: 0x2D0x2E) These registers conserve the last written data by SPI. These registers could be used to checkout when SPI write data. Noticed: WSPIData1 and WSPIData2 are irrelative, but the definition is identical.
http://www.Actions.com.cn
Page 33 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Chapter 3 Calibration
www..com
3.1 Software calibration
ATT7022B supplies software calibration. After calibrated, the active accuracy can achieve 0.5s and reactive accuracy can achieve 2s. Power calibration is completed by the active power gain calibration and the phase compensation. The active power is calibrated for one phase at a time. ATT7022B provides Iregchg register, which could set compensation subsection region, as illustrated in the nether figure.
Measured parameter power gain1 power gain0 measured curve ideal curve
0
100%Ib Current Iregchg Diagram 3-1-1 power gain calibration
We should set Iregchg according to actual application. After Iregchg is set, we need calibrate active power gain respectively to the two current ranges. If the register Iregchg is set to zero, only one current range is used for the active power gain calibration. The phase difference between voltage and current channel is compensated with these phase calibration registers. The ATT7022B is calibrated for phase compensation at five current point to cover the complete current range, which is very effective and user friendly, as illustrated in the nether figure.
Phsreg4 0
Phsreg3
Phsreg2
Phsreg1
Phsreg0 Current
Iregion4
Iregion3
Iregion2
Iregion1
Diagram 3-1-2 phase compensation region
In fact, only two current points are required for the accuracy class 1 and 0.5 when the low phase shifts CT's. More current points are required for the accuracy class 0.2 or higher. It is recommended that the phase compensation is performed in 0.5L after the active power gain calibration has been performed in power factor 1.0. Voltage and current RMS are calibrated by the register in the ATT7022B. Correlative calculated formula please refers to the latter detailed specification.
http://www.Actions.com.cn
Page 34 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B ATT7022B high-frequency pulse output (calibration pulse rate) can be set by the register HFConst. Starting current can be set by the register Istartup.
3.2 Calibration register definition
Address 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 Name RESERVED RESERVED w_Iregion1 w_Iregion2 w_Iregion3 w_Iregion4 w_PgainA0 w_PgainB0 w_PgainC0 w_PgainA1 Reset value -----0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 Function description Reserved. Reserved. Phase calibration region 1 setup Phase calibration region 2 setup Phase calibration region 3 setup Phase calibration region 4 setup Phase A active power gain 0 Phase B active power gain 0 Phase C active power gain 0 Phase A active power gain 1
http://www.Actions.com.cn
Page 35 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 0x26 0x27 0x28 0x29
www..com
w_IgainA w_IgainB w_IgainC w_FailVoltage
0x000000 0x000000 0x000000 0x068000 0x190000
Phase A current gain Phase B current gain Phase C current gain Threshold value of power failure (3-phase 4-wire mode) Threshold value of power failure (3-phase 3-wire mode) Calculating mode of 3 phase energy (sum in algebra/ absolute) RMS calibration to No.7 ADC Temperature/No.7 ADC select control Fundamental control wave measurement enable
0x2A 0x2B 0x2C 0x2D 0x2E 0x2F 0x30 0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38 0x39 0x3A 0x3B 0x3C 0x3D 0x3E 0x3F
w_EAddMode w_GainAdc7 w_GCtrlT7Adc w_EnLineFreq w_EnUAngle w_SelectPQSU w_EnDtIorder w_LineFreqPg RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED w_EnHarmonic RESERVED w_HFDouble w_UADCPga
0x000000 0x000000 0x000003 0x000000 0x000000 0x000000 0x000000 0x0020C4 0x040000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0x000000 0xF99999 0x000000 0x000000 0x000000 0x000000
Voltage middle angle measurement enable control Fundamental wave voltage power output select Current phase sequence detecting enable control Fundamental wave power calibration Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Reserved. Fundamental wave measurement harmonic measurement switched select Reserved. Pulse constant reduplication select Voltage channel ADC gain select and
http://www.Actions.com.cn
Page 36 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
3.3 Calibration register specification
3.3.1 Calibration pulse rate: HFConst (Address: 0x20)
www..com
The frequency for the meter calibration can be selected by the register HFConst. The data written to HFConst can not be greater than 0x000D00. Enactment: High-frequency pulse constant: EC Rated input voltage: Un Rated input current: Ib Voltage input channel signal: Vu Current input channel signal: Vi ATT7022B gain: G HFConst calculated formula: HFConst= INT 5760000000 x

G x G x Vu x Vi U n x I b x EC
Note: INT[] is the round function. For example: INT[2.28]=2. 3.3.2 Active power calibration region setup register: Iregchg (Address: 0x1E) Normally we don't need to separate region for active power calibration for accuracy 0.5S and 1S. When setting active power calibration region, the corresponding input signal voltage value of region point current must be less than 35mv, or else the overflow error would be brought. As known: Active power calibration region: Ig (Ig<0.035) Gain: G Formula: Iregchg = INT[G*Ig*223] 3.3.3 power gain calibration register: Pgain (Address: 0x060x0B) Power gain is calibrated in power factor cos()=1. If the active power calibration region setup register (Iregchg) is not zero, active power gain calibration must be performed at two current ranges (I>Iregchg and IIregchg), and Pgain1 is the range Ihttp://www.Actions.com.cn
Page 37 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B The error from standard meter: err Formula: Pgain=
www..com
- err 1 + err
If Pgain >= 0then Pgain = INT[Pgain*223] Else if Pgain < 0then Pgain = INT[224+Pgain*223] Note: err could be read from standard meter, or be achieved via calculating according to nether formula:
err =
ATT 7022 B measured energy - true energy x 100% true energy
3.3.4 Phase calibration region setup register: Iregion (Address: 0x020x05) The ATT7022B could be calibrated for phase compensation at maximum five current points to cover the complete current range. As known: Current region: Is Gain: G Formula: Iregion = INT[G*Is*223] Only two phase compensation region are required for the accuracy class 1 and class 0.5, thus only the register Iregion4 should be used, and the Iregion1/2/3 should be set to zero. If set 2 phase compensation region, we must implement phase compensation in I>=Iregion4 and I=Iregion4) should be set to the registers Phsreg0/1/2/3, and the phase compensation coefficient for the low current range (I3.3.5 phase calibration register: Phsreg (Address: 0x0C0x1A) PhsregA0PhsregA1PhsregA2PhsregA3PhsregA4 PhsregB0PhsregB1PhsregB2PhsregB3PhsregB4 PhsregC0PhsregC1PhsregC2PhsregC3PhsregC4 These registers stand for region Reg0Reg1Reg2Reg3Reg4 respectively. After active power calibration have been completed for the phase in power factor cos()=1., phase calibration can be proecessed and it should be processed in 0.5 lagging (cos()=0.5). As known: The error from standard meter in 0.5L: err Phase calibration formula: = acos((1+err)*0.5)-/3
http://www.Actions.com.cn
Page 38 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B If >= 0Phsreg = INT[*223] Else if < 0 Phsreg = INT[224+*223] 3.3.6 voltage RMS calibration register: Ugain(Address: 0x1B0x1D)
www..com
When Ugain=0, the real input voltage RMS Ur can be read from the standard meter and DataU is the value of measured voltage channel RMS register which is read from SPI port. As known: The real input voltage RMS: Ur The measured voltage RMS: Urms = DataU*210/223 Formula: Ugain = Ur/Urms-1 If Ugain >= 0, then Ugain = INT[Ugain*223] Else if Ugain < 0, then Ugain = INT[224+Ugain*223] 3.3.7 current RMS calibration register: Igain (Addrress: 0x260x28) When Igain=0, the real input current RMS Ir can be read from the standard meter, and DataI is the value of measured current channel RMS register which is read from SPI port. As known: The real input current RMS: Ir The measured current RMS: Irms = DataI*210/223 Formula: Igain = Ir/Irms-1 If Igain >= 0, then Igain = INT[Igain*223] Else if Igain < 0, then Igain = INT[224+Igain*223] Note: ATT7022B can provide RMS parameter for A/B/C 3 phase current vector summation: IRmst. For the accuracy of IRmst, the nether current RMS calibration method is recommended. When input rated current Ib, the sampling voltage in current channel is about 100mv, the read parameter from current RMS register is about 60A in Igain=0, at this time the current RMS should be calibrate to N*Ib, the real RMS could be get via (MCU read ATT7022 current RMS) / (N). N*Ib should near 60A to the best of its abilities. For example, if rated current Ib = 1.5A, then N = 40. If rated current Ib = 5A, then N = 12. 3.3.8 starting current setup register: Istartup (Address: 0x1F) As known: Starting current select Io
http://www.Actions.com.cn
Page 39 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Gain: G Formula: Istartup=INT[G*Io*223]
www..com 3.3.9
Threshold value of power failure setting register: FailVoltage (Address: 0x29)
Threshold value of power failure is setup according to calibrated voltage. Formula: FailVoltage = Un*213*D Un: denotes calibrated rated voltage D: denotes power failure voltage value, is a percent For example, In 3-phase 4-wire, calibrated rated voltage Un is 220v, power failure voltage value is 10%, then FailVoltage = 220*213*10% = 0x02C000. Scilicet when 0x02C000 was written to threshold value of power failure setting register, if input voltage is less than Un*10% (22v), power failure indication would be brought. In 3-phase 3-wire, calibrated rated voltage Un is 100v, power failure voltage value is 60%, then FailVoltage = 100*213*60% = 0x078000. Scilicet when 0x078000 was written to threshold value of power failure setting register, if input voltage is less than Un*60% (60v), power failure indication would be brought.
3.3.10
3 phase energy addition mode select register: EAddMode (Address: 0x2A)
As default, EAddMode[Bit0] = 0, in 3-phase 4-wire, denotes absolute addition mode; in 3-phase 3-wire, denotes algebraic addition mode. When EAddMode[Bit0] = 1, in 3-phase 4-wire, denotes algebraic addition mode; in 3-phase 3-wire, denotes absolute addition mode.
3.3.11 Temperature/No.7 ADC select control register: GCtrlT7Adc (Address: 0x2C) ATT7022B has a built-in temperature sensor, and extends a separate ADC which could be used to detect neutral-line current. These could be enabled via register GCtrlT7Adc. GCtrlT7Adc[bit0] is used to enable No.7 ADC, Bit0=1 denotes opening No.7 ADC, Bit0=0 denotes closing No.7 ADC. GCtrlT7Adc[bit2/bit1] is used tp enable temperature sensor, only Bit2/1=10 denotes opening temperature sensor, Bit2/1=00/01/11 denotes closing temperature sensor. GCtrlT7Adc Bit23..3 --------------------Bit2 0 0 0 0 Bit1 0 0 1 1
Page 40 of 54
Bit0 0 1 0 1
Temperature sensor OFF OFF OFF OFF
No.7 ADC OFF ON OFF ON
Rev 1.04
http://www.Actions.com.cn
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B --------------------www..com
1 1 1 1
0 0 1 1
0 1 0 1
ON ON OFF OFF
OFF ON OFF ON
3.3.12 No.7 ADC RMS calibration register: GainAdc7 (Address: 0x2B) No.7 ADC usually is used to detect neutral-line current. ATT7022B can also calibrate neutral-line current. When GainAdc7=0, the real input current RMS I7r can be read from the more precise current RMS meter, DataI7 is the measured current RMS register which is read from the SPI port. As known: the real input current RMS: I7r the measured current RMS: I7rms = DataI7*210/223 Fromula: GainAdc7 = I7r/I7rms-1 If GainAdc7 >= 0, then GainAdc7 = INT[GainAdc7*223] Else if GainAdc7 < 0, then GainAdc7 = INT[224+ GainAdc7*223] 3.3.13 Voltage middle angle measurement enable control register: EnUAngle (Addrress: 0x2E) Only when EnUAngle = 0x003584, ATT7022B can measure voltage middle angle. When EnUAngle 0x003584, ATT7022B can not measure voltage middle angle, scilicet voltage middle angle measurement function is disabled. Note: It is recommended that we should open this function only when we need to output the middle angle values, otherwise we should close this function.
3.3.14 Current phase sequence detecting enable control register: EnDtIorder (Address: 0x30) Only when EnDtIorder = 0x005678, ATT7022B can open current phase sequence detecting function. When EnDtIorder 0x005678, ATT7022B can not detect current phase sequence. Note: It is recommended that we should open this function only when we need to output the current phase sequence values, otherwise we should close this function.
http://www.Actions.com.cn
Page 41 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 3.3.15 Voltage channel ADC gain select register: UADCPga (Address: 0x3F) ATT7022B provides voltage channel ADC gain select register UADCPga, which is used to control amplificatory multiple of voltage channel ADC. In rated voltage Un, it is www..com recommended that (the sampling signal Vu) * (amplificatory multiple) should be about 0.5v. Value of UADCPga 0x465500 0x465501 0x465502 0x465503 0xA5xxxx Other value voltage channel ADC gain 2 4 8 16 Forbid be written 1
3.3.16 Pulse constant reduplication select register: HFDouble (Address: 0x3E) ATT7022B provides pulse constant reduplication select register: HFDouble, which is used to control pulse constant reduplication in small current mode. Scilicet in small current mode, we can magnify pulse constant via HFDouble register to speed up calibration. Note: since this function is implemented by magnifying the value of power, only in small current mode we should use it. If we use this function on large signal, the power register will overflow and lead an unknown mistake. Value of HFDouble 0x5533CC 0x5533CD 0x5533CE 0x5533CF Other value Pulse constant reduplication rate 2 4 8 16 1
3.3.17 Fundamental wave measurement enable control register: EnLineFreq (Address: 0x2D) ATT7022B can provide fundamental wave and harmonic active and reactive energy pulse output directly, also provide apparent energy pulse output directly, which include RMS apparent energy and PQS apparent energy. These functions can be setup via EnLineFreq and EnHarmonic. Value of EnLineFreq 0x007812 0x008127 0x005523 Value of EnHarmonic 0x0055AA 0x0055AA ----------Function Fundamental wave meter Harmonic meter RMS apparent energy meter PQS apparent energy meter
http://www.Actions.com.cn
Page 42 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Other value -----Forbid above function
3.3.18 Fundamental wave voltage power output select register: SelectPQSU
www..com
(Address: 0x2F) Fundamental wave active power, Fundamental wave reactive power, Fundamental wave apparent power, Fundamental wave phase angle, Fundamental wave power factor, and fundamental wave voltage parameter can be selected via SelectPQSU register. When SelectPQSU = 0x001228, corresponding power, voltage, phase, phase angle register would output fundamental wave parameter. When SelectPQSU 0x001228, corresponding power, voltage, phase, phase angle register would retain primary function.
3.3.19 Fundamental wave power calibration register: LineFreqPg (Address: 0x31) ATT7022B provides Fundamental wave power calibration register: LineFreqPg, which can calibrate fundamental wave energy and apparent energy. Fundamental wave power gain is calibration in power factor cos()=1. LineFreqPg should be cleared to zero before calibrate fundamental wave power, afterward we can calibrate fundamental wave power according to analogous method to section 3.4.4. As known: The error from standard meter: err Formula: LineFreqPg=
- err 1 + err
If LineFreqPg >= 0, then LineFreqPg = INT[LineFreqPg *223] Else if LineFreqPg < 0, then LineFreqPg = INT[224+ LineFreqPg *223]
3.3.20 Fundamental wave measurement and harmonic measurement switched select register: EnHarmonic (Address: 0x3C) As referred to section 3.3.19, harmonic meter mode is selected when register EnLineFreq = 0x007812 and EnHarmonic = 0x0055AA, here CF3/CF4 output harmonic pulse. Corresponding fundamental wave parameter is switched to harmonic parameter, including fundamental wave energy register switched to harmonic energy register, fundamental wave power and fundamental wave voltage switched to harmonic power and harmonic voltage.
http://www.Actions.com.cn
Page 43 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
3.4 Calibration flow chart and parameter calculation
3.4.1 Calibration flow
www..com
The standard energy meter is necessary to calibrate energy meters which are designed using ATT7022B. CF1 could be connected to the standard meter, then the calibrating could be done according to the error reading in standard meter. ATT7022B only need to calibrate active power, the reactive power need not to be calibrated. The calibration of fundamental wave meter and apparent meter please refer to the latter specifications. Calibration Flow Chart:
Start calibration Parameter setting
Phase B calibration
Phase A calibration
Phase C calibration
Calibration end
Diagram 3-4-1 Calibration flow
Parameter setting:
Start parameter setting High-frequency pulse output setting Phase calibration region setup energy addition mode setting
Threshold value of power failure setting
other parameter setting
Voltage channel ADC gain select
Active power calibration region setup
Starting current setup
parameter setting end
Diagram 3-4-2 Parameter setting
http://www.Actions.com.cn
Page 44 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Detached phase calibration:
Start phase A calibration Active power gain calibration (Pf=1.0)
www..com
Voltage calibration (Rated voltage)
Phase calibration (Pf=0.5L)
Current calibration (Rated current)
Phase A calibration end
Diagram 3-4-3 Phase A calibration flow
In detached phase calibration, the calibration of detached phase current maybe influence the accuracy of A/B/C 3 phase current vector summation register IRmst. The current RMS calibration is described in the specification of current calibration register in section 3.3.8.
3.4.2 Fundamental wave/harmonic calibration The fundamental wave and harmonic meter usually only need to be enabled after the calibration process according to section 3.4.1, needn't to be calibrated separately. If we want to calibrate fundamental wave and harmonic, we must use fundamental wave/harmonic standard energy meter. The CF3 should be connected to the fundamental wave/harmonic standard meter, and the calibrating is according to the error reading in standard meter. Only the fundamental wave active power need to be calibrated, and the fundamental wave reactive power need not to be calibrated.
http://www.Actions.com.cn
Page 45 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Start fundamental wave calibration
www..com
Enable fundamental wave measurement function or harmonic measurement function (EnLineFreq and EnHarmonic)
Clear fundamental wave power calibration register to zero LineFreqPg=0
Fundamental wave power calibration Pf=1.0
fundamentalwave calibration end
Diagram 3-4-4 Fundamental wave and harmonic calibration flow
3.4.3 RMS apparent energy calibration RMS apparent energy measurement function usually only need to be enabled after calibration according to section 3.4.1, and the RMS apparent energy usually needn't to be calibrated. If we want to calibrate RMS apparent energy, we must according to nether method. ATT7022B RMS apparent energy output via the CF3 port. The CF3 port should be connected to the apparent standard energy meter, and the calibrating should according to the error reading in standard meter.
Enable RMS apparent energy measurement function (EnLineFreq)
Start RMS apparent calibration
RMS apparent energy calibration Pf=1.0
Clear fundamental wave power calibration register to zero LineFreqPg=0
RMS apparent calibration end
Diagram 3-4-5 RMS apparent energy calibration flow
http://www.Actions.com.cn
Page 46 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B 3.4.4 PQS apparent energy calibration PQS apparent energy measurement function usually only need to be enabled after calibration according to section 3.4.1, PQS apparent energy usually needn't to be www..com calibrated. If we want to calibrate PQS apparent energy, we must according to nether method. ATT7022B PQS apparent energy output via CF4 port. CF4 should be connected to the apparent standard energy meter, and the calibrating should according to the error reading in standard meter.
Start PQS apparent calibration
Enable PQS apparent energy measurement function (EnLineFreq)
PQS apparent energy calibration Pf=1.0
Clear fundamental wave power calibration register to zero LineFreqPg=0
PQS apparent calibration end
Diagram 3-4-6 PQS apparent energy calibration flow
http://www.Actions.com.cn
Page 47 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Chapter 4 SPI communication interface
www..com
4.1 SPI communication interface introduction
ATT7022B has a built-in SPI serial communication interface, which use passive working mode. The SPI have 2 control line and 2 data line: CS, SCLK, DIN, and DOUT. CS: SPI selection signal (input pin), the control line of allowing accessing SPI. CS switches from high level to low level denotes SPI communication starting, CS switches from low level to high level denotes SPI communication ending. So when we start SPI communication, CS pin must be written a falling edge `'; when we stop SPI communication, CS pin must be written a rising edge `'. DIN: serial data input (input pin), used to transmit data to ATT7022B. DOUT: serial data output (output pin), used to read data from ATT7022B. SCLK: serial clock (input pin), control data transmission rate. In SCLK falling edge `', the data on DIN pin is sampled to ATT7022B, In SCLK rising edge `', the data in ATT7022B is output to DOUT pin. SPI communication interface is connected to external MCU as nether sketch map:
CS
35 10pF 36 10pF 37 10pF 38 10
10 10
ATT7022B
DIN
SCLK
10
MCU
DOUT
10pF
Diagram 4-1-1 SPI typical application
SPI signal line should be series connected a small resistance to prevent possible disturbance. This resistance associated with autoeciousness capacitance in chip's input port can compose a low pass filter, which could eliminate surge in SPI interface. It is recommended that a 10-100 resistance is used. If the autoeciousness capacitance in chip's input port is not big enough, we could use an external capacitance (about 10pF) at the input port. To select appropriate resistance and capacitance parameter, we should process some relevant experiments and analyze according to SPI transmission rate and the type of MCU.
http://www.Actions.com.cn
Page 48 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
4.2 SPI reading
All the measurement parameters and calibration parameters are transferred to external MCU via SPI.
www..com SPI
reading timing:
CS
SCLK DIN 76543210
23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
DOUT
Diagram 4-2-1 SPI reading timing
Command format meaning: 7 6 5 4 3 2 1 0 Bit7=0: host MCU read measurement and calibration register from ATT7022B. Bit7=1: host MCU write measurement and calibration data to ATT7022B. Bit6...0: register address, refer to register definition section. SPI reading working procedure: After host MCU writes 8-bits command byte, a waiting period of time maybe needed, and then host MCU could read 24-bits data via SPI. Host MCU needn't wait if SCLK is less than 200 KHz. The waiting period of time is about 3us if SCLK is greater than 200KHz. Please refer to parameter output register specification section about data formats. Note: When transferring, the MSB is transmitted firstly and the LSB is transmitted lastly. When SCLK is at high level, data on DIN or DOUT pin is updated. At every register's reading or writing the CS should be processed once. SPI reading demonstration:
--------------------------------------------------------------------01| ReadSpi(Byte Com) SPI 02| { 08| for(n=7;n>=0;n--) 03| ; Enable SPI 09| { 04| CS=1; 10| SCLK=1; 05| SCLK=0; 11| DIN=Com.n; 06| CS=0; 12| SCLK=0; 07| ; Send 8-bits Command to 13| }
http://www.Actions.com.cn
Page 49 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
14| 15| 16| SPI 17| www..com 18| 19| 20|
; waiting 3us delay(3); ; Read 24-bits Data From for(n=23,Data=0;n>=0;n--) { SCLK=1; Data.n=DOUT;
21| 22| 23| 24| 25| 26| 27| } 28|
SCLK=0; } ; Disable SPI CS=1; ; Return Data From SPI return(Data);
4.3 SPI writing
Host MCU can write calibration register in ATT7022B via SPI. SPI writing timing:
CS
Command
Data
SCLK DIN 7 6 5 4 3 2 1 023 22 21 20 1918 17 16 1514 13 1211 10 9
876543210
Diagram 4-3-1 SPI writing timing
Command format meaning: 7 6 5 4 3 2 1 0 Bit7/6 = 1 0: write command, used to update calibration data register. Bit7/6 = 1 1: write special command; refer to write special command section. Bit7 = 0: host MCU read measurement and calibration register from ATT7022B. Bit5...0: register address, refer to register definition section. SPI writing working procedure: After host MCU write 8-bits command byte, host MCU needn't wait and can write 24-bits data via SPI immediately. Note: When transferring, the MSB is transmitted firstly, the LSB is transmitted lastly. SPI writing demonstration:
--------------------------------------------------------------------01| WriteSpi(Byte Com,UINT Data) 05| SCLK=0; 02| { 06| CS=0; 03| ; Enable SPI 07| ; Send 8-bits Command to 04| CS=1; SPI
http://www.Actions.com.cn
Page 50 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
08| for(n=7;n>=0;n--) 17| SCLK=1; 09| { 18| DIN=Data.n; 10| SCLK=1; 19| SCLK=0; 11| DIN=Com.n; 20| } 12| SCLK=0; 21| ; Disable SPI www..com 13| } 22| CS=1; 14| ; Send 24-bits Data to SPI 23| } 15| for(n=23,Data=0;n>=0;n--) 24| 16| { --------------------------------------------------------------------4.4 SPI write special command
ATT7022B provides special command to cooperate with software calibration and the operation process is consistent with SPI writing operation timing. SPI write special command timing:
CS
Command
Data
SCLK DIN 7 6 5 4 3 2 1 023 22 21 20 1918 1716 1514 13 1211 10 9
876543210
Diagram 4-4-1 SPI write special command timing
Command format meaning: 7 6 5 4 3 2 1 0 Bit7/6 = 1 1: write special command. Bit7/6 = 1 0: write command, used to update calibration data register. Bit7/6 = 0 X: read command, host MCU read measurement and calibration register from ATT7022B. Bit5...0: the type of special command. SPI write special command working procedure: After host MCU write 8-bits command byte, host MCU needn't wait and can write 24-bits data via SPI immediately. Noticed: When transfer, the MSB is transmitted firstly, the LSB is transmitted lastly. Special command specification: ATT7022B special command includes: 0xC3, 0xC6, 0xC9, and 0xD3.
http://www.Actions.com.cn
Page 51 of 54 Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B Special command
www..com
8-bits command 0xC3
24-bits data 000000 h
Special command specification Sending 0xC3000000 can resume calibration data register to reset initialization. Sending command=0xC6 and data 0x00005A can read data register (00-7FH) via SPI. Sending command=0xC6 and data= 0x00005A can read calibration data register via SPI, and can not read 00-7FH register. When reading calibration data register, the reading value from 0x00 is 0xAAAAAA invariable, or else 0xAAAAAA. Sending 0xC9000000 can enable SPI calibration data writing operation, here host MCU could modify calibration data register via SPI. Host MCU can read the last written data from 0x002D/0x002E register after enabling SPI writing operation. Sending 0xC9000001 can disable SPI calibration data writing operation, that could prevent calibration data register from being written in error. After SPI calibration data writing operation is closed, if host MCU writ SPI port, the read data from 0x002D/0x002E is 0x200361 invariable.
Clear calibration data Read calibration data
0xC6
00005A h
Enable writing calibration data
0xC9
000000 h or 000001 h
Software reset
0xD3
000000 h
Sending 0xD3000000 ATT7022B.
can
reset
http://www.Actions.com.cn
Page 52 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
Chapter 5
www..com
Electrical Characteristics
5.1 Electrical parameter
Test object VCC VDD Reference voltage Reference power TC Input voltage range VOH(CF1,CF2, CF4,REVP) VOL(CF1,CF2, CF4,REVP) Logic input high-level1 Logic input low-level
1 2
minimum 4.75 2.3
typical 5 3.0 2.4 30
Max 5.25 2.6 1.5
unit V V V ppm V V
Test condition
Difference input Vpp IOH=5mA IOL=5mA
CF3, CF3,
4.5 0.5 2.5 0.8 2.5 0.8 130 2 100 28 16 3.2 88 -95 -92 24.576 -40 85
V Vmin Vmax Vmin Vmax K pF mA bit kHz DB DB DB MHz
Logic output high-level Logic output low-level
2
Ioh=2mA Iol=2mA
Reference voltage output resistance: Minimum load resistance Maximum load capacitance Positive current power supply
VDD=3.0V VCC=5V
ADC bit digit ADC sampling speed ADC dynamic range ADC whole distortion Crystal frequency Temperature range harmonic
ADC channel disturbance
Note 1: denotes CS, SCLK, DIN, SEL. Note 2: denotes DOUT.
http://www.Actions.com.cn
Page 53 of 54
Rev 1.04
Multifunctional fundamental wave and harmonic three-phase energy metering IC ATT7022B
5.2 Packaging information Packaging information: 44Pin
QFP (Quad
Flat
Package
10X10 )
www..com
NOTE1.Controlling dimension ---millimeter. 2.Each lead centerline is located within 0.12mm(0.005inch) of its true position (T.P.)at maximum material condition
ITEM A B C D F G H I J K L M N P Q R S
MILLIMETERS 13.60.4 10.00.2 10.00.2 13.60.4 1.0 1.0 +0.08 0.35 -0.07 0.15 0.8 (T.P.) 1.80.2 0.80.2 0.17 +0.08 -0.07 0.10
INCHES +0.017 0.535 -0.016 +0.008 0.394 -0.009 +0.008 0.394 -0.009 +0.017 0.535 -0.016 0.039 0.039 0.0140.003 0.006 0.031 (T.P.) +0.008 0.071 -0.009 +0.009 0.031 -0.008 +0.003 0.007 -0.004 0.004 +0.005 0.106 -0.004 0.0040.004 +7 -3 0.019 MAX 3
NEC CODE EIAJ CODE Weight(Reference Value)
P44GB-80-3B4-4 0.54g
2.70.1 0.10.1 +7 -3 3.0 MAX 3
http://www.Actions.com.cn
Page 54 of 54
Rev 1.04


▲Up To Search▲   

 
Price & Availability of ATT7022B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X